package org.coopac.service.impl;
import java.util.List;
import org.coopac.dao.ISocioDAO;
import org.coopac.model.CoopacSocio;
import org.coopac.service.ISocioService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
	@Transactional
	@Service("socioService")
	public class SocioService implements ISocioService {
	@Autowired
	private ISocioDAO socioDAO;

	@Override
	public List<CoopacSocio> listar() {
	return socioDAO.listar();
	}

	@Override
	public void save(CoopacSocio socio) {
		socioDAO.save(socio);
	}

	@Override
	public void update(CoopacSocio socio) {
		socioDAO.update(socio);
	}

	@Override
	public void delete(CoopacSocio socio) {
		socioDAO.delete(socio);
	}

	@Override
	public CoopacSocio getById(int id){
		return socioDAO.getById(id);
	}
	
	@Override
	public List<String> listarSocioPersonaDocumento() {
		return socioDAO.listarSocioPersonaDocumento();
	}

}
